class BootStrap {

     def init = { servletContext ->
		Clothe c1 = new Clothe(name:'pants').save()
		Clothe c2 = new Clothe(name:'pants1').save()
		Clothe c3 = new Clothe(name:'dress').save()
		Clothe c4 = new Clothe(name:'short').save()
		
		Wife her = new Wife(name:"Ale", wearing:c3).save()
		Child cd1 = new Child(name:"one", age:1, clothe:c1).save()
		Child cd2 = new Child(name:"two", age:2, clothe:c2).save()
		Child cd3 = new Child(name:"two", age:3, clothe:c3).save()
		
		Father he = new Father(name:"me", wifey:her)
		he.addToChildren(cd1)
		he.addToChildren(cd2)
		he.addToChildren(cd3)
		he.save()
     }
     def destroy = {
     }
} 